package com.aaa.mapper.front;

import com.aaa.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ShoppingCartMapper {
    /***
     * 根据用户编号查询购物车
     * @param userInfoId
     * @return
     */
    ShoppingCart findCartUserInfoId(Integer userInfoId);

    /**
     *  添加购物车对象
     * @param shoppingCart
     * @return
     */
    int insertCart(ShoppingCart shoppingCart);
}
